package test.actions;

import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.animations.VFXAction;
import com.megacrit.cardcrawl.actions.common.ExhaustSpecificCardAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import mutsumimod.vfx.ExhaustCardDiscardPileEffect;

public class ShadowAction extends AbstractGameAction {

    public AbstractCard card;
    public ShadowAction(AbstractCard card) {
        this.card = card;
    }

    public void update() {
        if(AbstractDungeon.player.hand.contains(card)) {
            AbstractDungeon.player.hand.moveToExhaustPile(card);
        }else if(AbstractDungeon.player.drawPile.contains(card)) {
            AbstractDungeon.player.drawPile.moveToExhaustPile(card);
        }else if(AbstractDungeon.player.discardPile.contains(card)) {
            AbstractDungeon.player.discardPile.moveToExhaustPile(card);
        }
        isDone = true;
    }

}
